package com.qifan.energy.global;

/**
 * 所有key值存储
 *
 * @important 请不要通过实现的方式引入
 */
public interface Keys {

    //----------------------SP存取key--------------------//
    String SP_KEY = "sp_key";
    String USER_INFO_KEY = "user_info_key";
    String USER_INFO_MEMBER_KEY = "user_info_member_key";
    String GAME_SOCKET_LOGIN_RESULT_KEY = "game_socket_login_result_key";
    String OSS_TOKEN_KEY = "oss_token_key";
    String LOGIN_KEY = "login_key";
    String TOKEN_KEY = "token_key";
    String NICKNAME_KEY = "nickname_key";
    String ORDER_ID_KEY = "order_id_key";
    String UPDATE_VERSION_KEY = "update_version_key";

    //----------------------request传输key--------------------//
    String MOBILE = "mobile";
    String TYPE = "type";
    String HOME_SHOW_TYPE = "home_show_type";
    String ADRESS_ORDER_TYPE = "adress_order_type";
    String CART_ORDER_TYPE = "cart_order_type";
    String BINDING_ALIPAY_TYPE = "binding_alipay_type";

    //----------------------页面跳转--------------------//

    String DETAIL_ID_KEY = "detail_id_key";
    String DETAIL_COUPON_KEY = "detail_coupon_key";
    String UPDATE_ADDRESS_KEY = "update_address_key";
    String FROM_ORDER_KEY = "from_order_key";
    String FROM_DETAIL_KEY = "from_detail_key";
    String FROM_DETAILPAY_KEY = "from_detailpay_key";
    String FROM_GAMEHALL_KEY = "from_gamehall_key";

    /**
     * ----------------------intent传输key--------------------
     */
    String CONTENT = "content";
    String CONFIRM_BUTTON_TEXT = "confirm_button_text";
    String TOTAL = "TOTAL";
    public String FULL_SCREEN = "full_screen";
    public String AUTO_TITLE = "auto_title";
    public String RIGHT_TEXT = "right_text";
    public String TITLE = "title";
    public String URL = "url";

    /* 收发通知 */
    interface NOTIFY_EVENT {
        String PAYSUCCESS = "pay_success";//支付成功
    }

    /* Socket Key 发送 */
    interface SOCKET_EMIT {
        String LOGIN = "login";//用户登录
        String READY = "ready";//玩家准备
        String START = "start";//开始游戏
        String STAKE = "stake";//玩家下注 //0：石头，1：剪刀，2：布，-1：不出
        String EXIT = "exit";//玩家退出房间
        String GAME_PING = "game_ping";//客户端心跳包
    }

    /* Socket Key 接收 */
    interface SOCKET_ON {
        String LOGIN_FINISHED = "login_finished";//登录完成
        String LOGIN_RESULT = "login_result";//登录异常结果提示 0	//登录成功  1	//参数异常或缺失 2	//sign校验异常//token过期
        String GAME_PONG = "game_pong";//客户端心跳答复
        String NEW_USER_COMES_PUSH = "new_user_comes_push";//玩家进入房间牌桌或上线
        String ROOM_PERSONS_NOTIFY = "room_persons_notify";//房间人数通知(大厅广播)
        String USER_READY_PUSH = "user_ready_push";//玩家已准备(房间广播)
        String USER_START_PUSH = "user_start_push";//玩家已开始(房间广播)
        String USER_STAKE_PUSH = "user_stake_push";//玩家已押注(房间广播)
        String EXIT_NOTIFY = "exit_notify";//玩家退出房间通知(房间广播)
        String EXIT_RESULT = "exit_result";//玩家退出结果(房间广播) 0：正常退出，1：正在游戏不能退出，-4：其他异常
        String TIME_OUT = "time_out";//玩家时间卡用尽
        String STAKE_RESULT_NOTIFY = "stake_result_notify";//下注结果
        String USER_ONLINE_NOTIFY = "user_online_notify";//玩家在线状态(房间广播)
        String CHAT = "chat";//房间广播
        String READY_BEGIN_NOTIFY = "ready_begin_notify";//游戏准备阶段开始(房间广播)
        String STAKE_BEGIN_PUSH = "stake_begin_push";//游戏下注阶段开始(房间广播)
        String GAME_SYNC_PUSH = "game_sync_push";//玩家掉线再次上线同步游戏数据(上线后发送准备即可监听)
    }
}
